function EnterLoading(gate)
    local scene = nil;
    
    g_Data.startCk = os.clock();
    
    local function _onUpdate()
        local t = os.clock();
        
        local progress = scene.layer:getChildByName("progress")
        local percent = 100 * (t-g_Data.startCk)*1000/EXCEL.const["loadingTime"]
        if percent>100 then
            PopScene();
            EnterGate(gate);
        end
        progress:setPercent(percent)
    end
    scene = LoadJson("loading.json", _onUpdate);
    
    PushScene(scene);
end

